package main

import "io"

// 标准库中的某个函数
func Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) {
	p := newPrinter()
	p.DoPrintf(format, a)
	n, err = w.Write(p.buf)
	p.free()
	return
}
